import request from '@/utils/request'


// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/system/relative/get-import-user-template',
    method: 'get',
    responseType: 'blob',
    loading:true
  })
}
// 下载组织导入模板
export function importOrgTemplate() {
  return request({
    url: '/system/relative/get-import-org-template',
    method: 'get',
    responseType: 'blob',
    loading:true
  })
}
//用户导入错误数据查看
export function getImportFailDataList(data) {
  return request({
    url: '/system/user/importLog',
    method: 'post',
    data: data
  })
}
// 下载导出过的用户错误数据 Excel
export function downloadRelativeUserErrorLog(id) {
  return request({
    url: '/system/relative/downloadRelativeUserErrorLog?fileId='+id,
    method: 'get',
    responseType: 'blob',
  })
}

// 下载导出过的组织错误数据 Excel
export function downloadEnterpriseErrorLog(id) {
  return request({
    url: '/system/relative/downloadEnterpriseErrorLog?fileId='+id,
    method: 'get',
    responseType: 'blob',
  })
}
